home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / dhcp3-client.postinst < prev    next >
Text File  |  2008-08-25  |  1KB  |  46 lines

  1. #!/bin/sh -e
  2. #
  3. # $Id: dhcp3-client.postinst,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
  4. #
  5.  
  6. # Source debconf library.
  7. . /usr/share/debconf/confmodule
  8.  
  9. case "$1" in
  10.     configure)
  11.         if [ ! -e /var/lib/dhcp3/dhclient.leases ]; then
  12.             if test -e /var/lib/dhcp/dhclient.leases; then
  13.                 cp /var/lib/dhcp/dhclient.leases /var/lib/dhcp3/dhclient.leases
  14.             else
  15.                 touch /var/lib/dhcp3/dhclient.leases
  16.             fi
  17.         fi
  18.  
  19.     if dpkg --compare-versions "$2" lt-nl "3.0.4-2"; then
  20.         if [ -e /etc/dhcp3/dhclient-script ]; then
  21.             db_input high dhcp3-client/dhclient-script_moved || true
  22.             db_go
  23.         else
  24.             db_input high dhcp3-client/dhclient-needs-restarting || true
  25.             db_go
  26.         fi
  27.     fi
  28.  
  29.     if [ -e /etc/dhcp3/dhclient.conf.oldconfig ]; then
  30.         mv /etc/dhcp3/dhclient.conf.oldconfig /etc/dhcp3/dhclient.conf
  31.     fi
  32.  
  33.         ;;
  34.  
  35.     abort-upgrade|abort-remove|abort-deconfigure)
  36.         exit 0
  37.         ;;
  38.     
  39.     *)
  40.         echo "postinst called with unknown argument \`$1'" >&2
  41.         exit 0
  42.         ;;
  43. esac
  44.  
  45.  
  46.